services/spm_deprecated: fix return code polarity of spm_init()
authorArd Biesheuvel <[email protected]>
Tue, 1 Jan 2019 10:03:08 +0000 (11:03 +0100)
committerArd Biesheuvel <[email protected]>
Tue, 15 Jan 2019 16:51:23 +0000 (17:51 +0100)
Registered init handlers return a boolean int, not a return code,
so convert the result from the SPM init call before returning it.

Signed-off-by: Ard Biesheuvel <[email protected]>
services/std_svc/spm_deprecated/spm_main.c

index 540f257bd366ee513e15fbd9c14d85b71b8d34ab..7525763b181c00355e63d633b0689b2ec74ab45c 100644 (file)
@@ -151,7 +151,7 @@ static int32_t spm_init(void)
 
        INFO("Secure Partition initialized.\n");
 
-       return rc;
+       return !rc;
 }
 
 /*******************************************************************************